package Change.service.impl;

import java.util.List;

import Change.dao.SchoolDao;
import Change.model.School;
import Change.service.SchoolManager;

public class SchoolManagerImpl extends GenericManagerImpl<School, Long> implements
		SchoolManager {
	
	private SchoolDao dao;

	public SchoolManagerImpl(SchoolDao dao) {
		super(dao);
		this.dao = dao;
	}

	public School getSchool(Long id) {
		return dao.getSchools(id).get(0);
	}

	public List<School> getSchools() {
		return dao.getSchools(null);
	}

}
